.class public Lcom/brixd/niceapp/community/activity/AppFilterActivity;
.super Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;
.source "AppFilterActivity.java"


# instance fields
.field private mAppListFragment:Lcom/brixd/niceapp/community/CommunityAppListFragment;

.field private mOrder:Ljava/lang/String;

.field private mTag:Lcom/brixd/niceapp/model/TagModel;


# direct methods
.method public constructor <init>()V
    .registers 1

    .prologue
    .line 16
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;-><init>()V

    return-void
.end method

.method private initData()V
    .registers 3

    .prologue
    .line 47
    invoke-virtual {p0}, Lcom/brixd/niceapp/community/activity/AppFilterActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string v1, "Tag"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object v0

    check-cast v0, Lcom/brixd/niceapp/model/TagModel;

    iput-object v0, p0, Lcom/brixd/niceapp/community/activity/AppFilterActivity;->mTag:Lcom/brixd/niceapp/model/TagModel;

    .line 48
    invoke-virtual {p0}, Lcom/brixd/niceapp/community/activity/AppFilterActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string v1, "Order"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/brixd/niceapp/community/activity/AppFilterActivity;->mOrder:Ljava/lang/String;

    .line 49
    iget-object v0, p0, Lcom/brixd/niceapp/community/activity/AppFilterActivity;->mOrder:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_26

    .line 50
    const-string v0, ""

    iput-object v0, p0, Lcom/brixd/niceapp/community/activity/AppFilterActivity;->mOrder:Ljava/lang/String;

    .line 53
    :cond_26
    sget-object v0, Lcom/brixd/niceapp/community/AbsCommunityBaseFragment$AppListType;->Type_Tag:Lcom/brixd/niceapp/community/AbsCommunityBaseFragment$AppListType;

    invoke-static {v0}, Lcom/brixd/niceapp/community/CommunityAppListFragment;->getInstance(Lcom/brixd/niceapp/community/AbsCommunityBaseFragment$AppListType;)Lcom/brixd/niceapp/community/CommunityAppListFragment;

    move-result-object v0

    iput-object v0, p0, Lcom/brixd/niceapp/community/activity/AppFilterActivity;->mAppListFragment:Lcom/brixd/niceapp/community/CommunityAppListFragment;

    .line 54
    iget-object v0, p0, Lcom/brixd/niceapp/community/activity/AppFilterActivity;->mAppListFragment:Lcom/brixd/niceapp/community/CommunityAppListFragment;

    iget-object v1, p0, Lcom/brixd/niceapp/community/activity/AppFilterActivity;->mTag:Lcom/brixd/niceapp/model/TagModel;

    invoke-virtual {v0, v1}, Lcom/brixd/niceapp/community/CommunityAppListFragment;->setTag(Lcom/brixd/niceapp/model/TagModel;)V

    .line 55
    iget-object v0, p0, Lcom/brixd/niceapp/community/activity/AppFilterActivity;->mAppListFragment:Lcom/brixd/niceapp/community/CommunityAppListFragment;

    iget-object v1, p0, Lcom/brixd/niceapp/community/activity/AppFilterActivity;->mOrder:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/brixd/niceapp/community/CommunityAppListFragment;->setOrder(Ljava/lang/String;)V

    .line 56
    return-void
.end method

.method private initWidgets()V
    .registers 4

    .prologue
    .line 59
    const/16 v1, 0x8

    invoke-virtual {p0, v1}, Lcom/brixd/niceapp/community/activity/AppFilterActivity;->setCommitBtnVisibility(I)V

    .line 60
    const v1, 0x7f08002a

    invoke-virtual {p0, v1}, Lcom/brixd/niceapp/community/activity/AppFilterActivity;->setActionBarBackground(I)V

    .line 61
    const v1, 0x7f02005d

    invoke-virtual {p0, v1}, Lcom/brixd/niceapp/community/activity/AppFilterActivity;->setBackIcon(I)V

    .line 62
    const v1, 0x7f0200ae

    invoke-virtual {p0, v1}, Lcom/brixd/niceapp/community/activity/AppFilterActivity;->setBackArrowBackground(I)V

    .line 63
    iget-object v1, p0, Lcom/brixd/niceapp/community/activity/AppFilterActivity;->mTag:Lcom/brixd/niceapp/model/TagModel;

    invoke-virtual {v1}, Lcom/brixd/niceapp/model/TagModel;->getTitle()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p0, v1}, Lcom/brixd/niceapp/community/activity/AppFilterActivity;->setTopTitle(Ljava/lang/String;)V

    .line 64
    invoke-virtual {p0}, Lcom/brixd/niceapp/community/activity/AppFilterActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f08007f

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getColor(I)I

    move-result v1

    invoke-virtual {p0, v1}, Lcom/brixd/niceapp/community/activity/AppFilterActivity;->setTopTitleTextColor(I)V

    .line 66
    invoke-virtual {p0}, Lcom/brixd/niceapp/community/activity/AppFilterActivity;->getSupportFragmentManager()Landroid/support/v4/app/FragmentManager;

    move-result-object v1

    invoke-virtual {v1}, Landroid/support/v4/app/FragmentManager;->beginTransaction()Landroid/support/v4/app/FragmentTransaction;

    move-result-object v0

    .line 67
    .local v0, "ft":Landroid/support/v4/app/FragmentTransaction;
    const v1, 0x7f0a00d4

    iget-object v2, p0, Lcom/brixd/niceapp/community/activity/AppFilterActivity;->mAppListFragment:Lcom/brixd/niceapp/community/CommunityAppListFragment;

    invoke-virtual {v0, v1, v2}, Landroid/support/v4/app/FragmentTransaction;->replace(ILandroid/support/v4/app/Fragment;)Landroid/support/v4/app/FragmentTransaction;

    .line 68
    invoke-virtual {v0}, Landroid/support/v4/app/FragmentTransaction;->commit()I

    .line 69
    return-void
.end method

.method private initWidgetsActions()V
    .registers 2

    .prologue
    .line 72
    new-instance v0, Lcom/brixd/niceapp/community/activity/AppFilterActivity$1;

    invoke-direct {v0, p0}, Lcom/brixd/niceapp/community/activity/AppFilterActivity$1;-><init>(Lcom/brixd/niceapp/community/activity/AppFilterActivity;)V

    invoke-virtual {p0, v0}, Lcom/brixd/niceapp/community/activity/AppFilterActivity;->setOnBackClickListener(Landroid/view/View$OnClickListener;)V

    .line 79
    return-void
.end method


# virtual methods
.method protected onCreate(Landroid/os/Bundle;)V
    .registers 3
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    .line 38
    invoke-super {p0, p1}, Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;->onCreate(Landroid/os/Bundle;)V

    .line 39
    const v0, 0x7f030030

    invoke-virtual {p0, v0}, Lcom/brixd/niceapp/community/activity/AppFilterActivity;->setContentView(I)V

    .line 41
    invoke-direct {p0}, Lcom/brixd/niceapp/community/activity/AppFilterActivity;->initData()V

    .line 42
    invoke-direct {p0}, Lcom/brixd/niceapp/community/activity/AppFilterActivity;->initWidgets()V

    .line 43
    invoke-direct {p0}, Lcom/brixd/niceapp/community/activity/AppFilterActivity;->initWidgetsActions()V

    .line 44
    return-void
.end method

.method protected onPause()V
    .registers 2

    .prologue
    .line 31
    invoke-super {p0}, Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;->onPause()V

    .line 32
    const-string v0, "AppFilterActivity"

    invoke-static {v0}, Lcom/umeng/analytics/MobclickAgent;->onPageEnd(Ljava/lang/String;)V

    .line 33
    invoke-static {p0}, Lcom/umeng/analytics/MobclickAgent;->onPause(Landroid/content/Context;)V

    .line 34
    return-void
.end method

.method protected onResume()V
    .registers 2

    .prologue
    .line 24
    invoke-super {p0}, Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;->onResume()V

    .line 25
    const-string v0, "AppFilterActivity"

    invoke-static {v0}, Lcom/umeng/analytics/MobclickAgent;->onPageStart(Ljava/lang/String;)V

    .line 26
    invoke-static {p0}, Lcom/umeng/analytics/MobclickAgent;->onResume(Landroid/content/Context;)V

    .line 27
    return-void
.end method
